<?php
include('./phuichi.php');

/* Phui Init Test */
echo("Testing phui_init...\n\n");
print_r(phui_init());
echo("\nDid it work correctly? (y/n)\t");
if(trim(fgets(STDIN))=='n'){
	die(1);
}

/* Phui ColChar Test */
echo("Testing phui_colchar...\n\n");
echo(phui_colchar('30')."Black        - Test\n");
echo(phui_colchar('31')."Red          - Test\n");
echo(phui_colchar('32')."Green        - Test\n");
echo(phui_colchar('33')."Yellow       - Test\n");
echo(phui_colchar('34')."Blue         - Test\n");
echo(phui_colchar('35')."Magenta      - Test\n");
echo(phui_colchar('36')."Cyan         - Test\n");
echo(phui_colchar('37')."White        - Test\n");
echo(phui_colchar('30',false,true)."Bold Black   - Test\n");
echo(phui_colchar('31',false,true)."Bold Red     - Test\n");
echo(phui_colchar('32',false,true)."Bold Green   - Test\n");
echo(phui_colchar('33',false,true)."Bold Yellow  - Test\n");
echo(phui_colchar('34',false,true)."Bold Blue    - Test\n");
echo(phui_colchar('35',false,true)."Bold Magenta - Test\n");
echo(phui_colchar('36',false,true)."Bold Cyan    - Test\n");
echo(phui_colchar('37',false,true)."Bold White   - Test\n");
echo(chr(27)."[0m");
echo("\nDid it work correctly? (y/n)\t");
if(trim(fgets(STDIN))=='n'){
	die(1);
}

phui_reset();

/* Phui Notice Test */
echo("Testing phui_notice...\n\n");
phui_notice(array(24,80,2,0),'This is a test message! Isn\'t that great?'."\n".'We do new lines too!');
echo("\nDid it work correctly? (y/n)\t");
if(trim(fgets(STDIN))=='n'){
	die(1);
}

phui_reset();
echo("\n\nTesting phui_title\n\n");
phui_title(array(24,80,0,0),'This is a test title!');
echo("\nDid it work correctly? (y/n)\t");
if(trim(fgets(STDIN))=='n'){
	die(1);
}

phui_reset();
?>
